package com.demo13;

/**
 * Created by wzl on 2017/8/25.
 */
public class MyException2 extends Exception{
    String message;//定义String类型变量
    public MyException2(String ErrorMessage){//父类方法
        message=ErrorMessage;
    }
    public String getMessage(){//覆盖getMessage()方法
        return message;
    }
}
